import { RouterLink, RouterView } from "vue-router";
import Layout from "../../layout/index.vue";

const sys = [
  // {
  //     path: "/",
  //     redirect: "/home",
  //     component: () => import("@/views/login/index.vue"),
  // },
  {
    path: "/login",
    name:"login",
    meta: { title: "login" ,},
    component: () => import("@/views/login/index.vue"),
  },
  // {
  //   path: "/home",
  //   meta: {title: "主页"},
  //    component: () => import("@/views/home/index.vue"),
  // },
  {
    path: "/",
    name: "layout",
    meta: { title: "主页",isMeun:"layout"},
    component: Layout,
    children: [
      {
        path: "/workTower",
        name:"workTower",
        meta: { title: "主页", mark: "*:*:*" ,isMeun:"1",icon:"#icon-wodericheng-"},
        component: () => import("@/views/workTower/index.vue"),
      },
      // {
      //   path: "/home",
      //   name:"home",
      //   meta: { title: "主页", mark: "*:*:*" ,isMeun:"true"},
      //   component: () => import("@/views/home/index.vue"),
      // },
      {
        path: "/menu",
        name:"menu",
        meta: { title: "menu", mark: "*:*:*" ,isMeun:"1" ,icon:"#icon-yingyongzhongxin"},
        component: () => import("@/views/menuDrawer/index.vue"),
      },
      {
        path: "/meetList",
        name:"meetList",
        meta: { title: "meetList",name: "可视电话", mark: "*:*:*" ,isMeun:"0",icon:"#icon-icon_phone_call_"},
        component: () => import("@/views/meetList/index.vue"),
      },
      {
        path: "/meeting/:id?/:age?",
        name:"meet",
        meta: { title: "meet", mark: "*:*:*" ,isMeun:"3",icon:"#icon-icon_phone_call_"},
        component: () => import("@/views/meeting/index.vue"),
        props:true
      },
      {
        path: "/adset",
        name:"adset",
        meta: { title: "set",name: "AI创建", mark: "*:*:*" ,isMeun:"2",icon:"#icon-dashuju11"},
        component: () => import("@/views/aiDataSet/index.vue"),
      },
      {
        path: "/excel",
        name:"excel",
        meta: { title: "excel", mark: "*:*:*" ,isMeun:"1",icon:"#icon-Excel2"},
        component: () => import("@/views/hotTable/index.vue"),
      },
      {
        path: "/word",
        name:"word",
        meta: { title: "word", mark: "*:*:*" ,isMeun:"1",icon:"#icon-Word-Color"},
        component: () => import("@/views/canvasEditor/index.vue"),
      },
      {
        path: "/folder",
        name:"folder",
        meta: { title: "folder", mark: "*:*:*" ,isMeun:"1",icon:"#icon-dashuju6"},
        component: () => import("@/views/folder/index.vue"),
      },{
        path: "/showFile",
        name:"showFile",
        meta: { title: "showFile", mark: "*:*:*" ,isMeun:"3",icon:"#icon-dashuju6"},
        component: () => import("@/views/showFile/index.vue"),
      },
      {
        path: "/showExcel",
        name:"showExcel",
        meta: { title: "showExcel", mark: "*:*:*" ,isMeun:"3",icon:"#icon-dashuju6"},
        component: () => import("@/views/showExcel/index.vue"),
      },
      {
        path: "/showWord",
        name:"showWord",
        meta: { title: "showWord", mark: "*:*:*" ,isMeun:"3",icon:"#icon-dashuju6"},
        component: () => import("@/views/showWord/index.vue"),
      },
      {
        path: "/set",
        name:"dataSet",
        meta: { title: "set", mark: "*:*:*" ,isMeun:"3",icon:"#icon-kucunpandian"},
        component: () => import("@/views/dataSet/index.vue"),
      },
      {
        path: "/aiSet",
        name:"aiSet",
        meta: { title: "aiSet", mark: "*:*:*" ,isMeun:"1" ,icon:"#icon-kucunpandian"},
        component: () => import("@/views/aiSet/index.vue"),
      },
      {
        path: "/tableSet",
        name:"tableSet",
        meta: { title: "tableSet", mark: "*:*:*" ,isMeun:"3",icon:"#icon-kucunpandian"},
        component: () => import("@/views/tableSet/index.vue"),
      },
      {
        path: "/shop",
        name:"shop",
        meta: { title: "shop", mark: "*:*:*" ,isMeun:"3" ,icon:"#icon-kucunpandian"},
        component: () => import("@/views/shop/index.vue"),
      },
      {
        path: "/form",
        name:"form",
        meta: { title: "form", mark: "*:*:*" ,isMeun:"3" ,icon:"#icon-kucunpandian"},
        component: () => import("@/views/Form/index.vue"),
      }, {
        path: "/table/:id?/:age?",
        name:"table",
        meta: { title: "table", mark: "*:*:*" ,isMeun:"3",icon:"#icon-kucunpandian"},
        component: () => import("@/views/table/index.vue"),
        props:true
      },
      {
        path: "/404",
        name:"404",
        meta: { title: "error" ,mark: '*:*:*' ,isMeun:"3"},
        component: () => import("../../views/error/404.vue"),
      }, 
      {
        path: "/t3",
        name:"t3",
        meta: { title: "主页t3" ,isMeun:"true",icon:"#icon-kucunpandian"},
        mark: "*:*:*",
        component: () => import("@/views/test3/index.vue"),
      },
    ],
  },
  // {
  //   path: "/404",
  //   meta: { title: "error" },
  //   component: () => import("../../views/error/404.vue"),
  // },
  {
    path: "/:pathMatch(.*)*",
    meta: { title: "error" ,isMeun:"false"},
    redirect: "/404",
  },
  //   {
  //     path: "/404",
  //     meta: { title: "error" },
  //     // redirect: "/404",

  //     component: () => import("../../views/error/404.vue"),
  //   },

  //   {
  //     path: "/:pathMatch(.*)*",
  //     meta: { title: "error" },
  //     redirect: "/404",
  //     // component: Layout,
  //     // children: [
  //     //     {
  //     //       path: "404",
  //     component: () => import("../../views/error/404.vue"),
  //     //     }
  //     //   ]
  //   },
  // {
  //     path: "/",
  //     // component: Layout,
  //     meta: {title: "首页"},
  //     children: [
  //         {
  //             path: "/home",
  //             meta: {title: "数据分析"},
  //             component: () => import("@/views/login/index.vue")
  //         }
  //     ]
  // },
  // {
  //     path: "/",
  //     // component: Layout,
  //     children: [
  //         {
  //             path: "/about",
  //             meta: {title: "关于"},
  //             component: () => import("@/views/login/index.vue")
  //         }
  //     ]
  // },
];

export default sys;
